import request from '@/utils/request';


// 修改配置
export function modifyConfiguration(data) {
  return request({
    url: '/dev-api/api/Subscriber/config',
    method: 'post',
    data: data,
  });
}
// 查询参数列表 角色列表m
export function roleList(data) {
  return request({
    url: '/dev-api/api/auth/roleList',
    method: 'post',
    data: data,
  });
}
// 创建账号替换roleList
export function myRoleList(data) {
  return request({
    url: '/dev-api/api/auth/myRoleList',
    method: 'post',
    data: data,
  });
}
export function accountCreate(data) {
  return request({
    url: '/dev-api/api/account/accountCreate',
    method: 'post',
    data: data,
  });
}
export function accountListExpserts(data) {
  return request({
    url: '/dev-api/api/account/accountListExpserts',
    method: 'post',
    data: data,
  });
}
export function accountList(data) {
  return request({
    url: '/dev-api/api/account/accountList',
    method: 'post',
    data: data,
  });
}

export function accountDel(data) {
  return request({
    url: '/dev-api/api/account/accountDel',
    method: 'post',
    data: data,
  });
}

// 权限列表
export function ruleList(data) {
  return request({
    url: '/dev-api/api/auth/ruleList',
    method: 'post',
    data: data,
  });
}

// 添加新角色权限
export function roleCreate(data) {
  return request({
    url: '/dev-api/api/auth/roleCreate',
    method: 'post',
    data: data,
  });
}

// 删除新角色权限
export function roleDel(data) {
  return request({
    url: '/dev-api/api/auth/roleDel',
    method: 'post',
    data: data,
  });
}

// 更新权限
export function accessCreate(data) {
  return request({
    url: '/dev-api/api/auth/accessCreate',
    method: 'post',
    data: data,
  });
}

// 恢复默认
export function accessReset(data) {
  return request({
    url: '/dev-api/api/auth/accessReset',
    method: 'post',
    data: data,
  });
}

export function accExportApi(data) {
  return request({
    url: '/dev-api/api/Account/accExport',
    method: 'post',
    data: data,
  });
}